/<template>
  <div>
    <h2>详情1</h2>
    <img :src="detail.img" alt="" />
    <h3>{{ detail.title }}</h3>
    <h3>{{ detail.type }}</h3>
    <h3>{{ detail.price }}</h3>
    <h3>{{ detail.text }}</h3>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      detail: {},
    };
  },
  mounted() {
    axios
      .get("/houseDetail", {
        params: {
          id: this.$route.query.id,
        },
      })
      .then((res) => {
        console.log(res);
        this.detail = res.data;
      });
  },
};
</script>

<style>
</style>